package com.es;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan(basePackages = "com.es")
@PropertySource("classpath:jdbc.properties")
//开启全局事务
@EnableTransactionManagement
//扫描mapper
@MapperScan(basePackages = "com.es.mapper")
public class SpringMybatisApp {
}
